package chixing.day06.homework;

/**
 * 属性：custName（姓名）、custBalance（账户余额）
 * 构造函数：初始化姓名和余额
 * 方法：printCustomerInfo()：输出客户信息
 */
public class Customer {
    private String custName;
    private double custBalance;

    public Customer(){}
    public Customer(String custName, double custBalance) {
        this.custName = custName;
        this.custBalance = custBalance;
    }

    /**
     * 输出客户信息
     */
    public void  printCustomerInfo(){
        System.out.println("姓名:" + custName + "账户余额" + custBalance);
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public double getCustBalance() {
        return custBalance;
    }

    public void setCustBalance(double custBalance) {
        this.custBalance = custBalance;
    }

    @Override
    public String toString() {
        return
                "custName='" + custName + '\'' +
                ", custBalance=" + custBalance;
    }
}
